import java.util.ArrayList;

public class Test02 {
    /**
     * s1 = welcome to home
     * s2 = come
     * 要求删除 s1 中的字符 , 这些字符都是 s2 出现的 s1 = wl t h
     * @param args
     */
    public static void main(String[] args) {
        ArrayList<Character> list = new ArrayList<>();
        String s1 = "welcome to home";
        String s2 = "come";

        for (int i = 0; i < s1.length(); i++) {
            char ch = s1.charAt(i);
            if (!s2.contains(ch + "")) {
                list.add(ch);
            }
        }
        for (int i = 0; i < list.size(); i++) {
            System.out.print(list.get(i));

        }

    }
}
